<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#include "/views/ftl/base/manager_include.ftl">

<script type="text/javascript" src="${basePath}js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}js/manager/comonFunction.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单列表</title>
<script type="text/javascript">
$().ready(function() {
	$("#search_button").click(function(){
		$('#select_form').submit();
    });
});

</script>
<style>
A{
color: #333;
}
input{
vertical-align: top;}
</style>
</head>
<body style="background:#eef3f7;">
<#include "/views/ftl/base/head.ftl">
<div class="Main">
  <div class="dw">
<#include "/views/ftl/base/menu.ftl">
<#function a><#return "订单列表_List"></#function> 
<!--右边内容-->
<div class="Rightbox fl">
    <!--导航-->
    <div class="Bread_crbs clear">
      <div class="Bread_crbs_img fl"></div>
      <div class="Bread_crbs_text fl">
      	<a href="javascript:void(0);"><span>订单管理</span></a>
      	<span class="fnt_famy">></span>
      	<a href="javascript:void(0);"><span>订单列表</span></a>
      </div>
    </div>
    <!--搜索框修改-->
    <form id="select_form" name="select_form" action="${basePath}manager/TradeOrder_tradeOrderList" method="post">
	    <div class="searchBox fl">
			<span>用户ID</span><input type="text" name="userId" value="${(userId?c)!''}"  style="width:70px;"/>
	        <span>开始时间</span><input type="text" name="startDate" value="${(requestVo.startDate)!''}" style="width:100px;" readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
	        <span>结束时间</span><input type="text" name="endDate" value="${(requestVo.endDate)!''}" readonly="readonly"  style="width:100px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
	   		<span>状态</span>
	   			<select name="orderStatus" class="sp">
	   		
          		<option value="0" <#if requestVo.orderStatus??><#if requestVo.orderStatus==0>selected='true'</#if></#if>>全部</option>
	   		 	<#list tradeOrderStatusEnum as enum >  
     			<option value="${enum.status}" <#if requestVo.orderStatus??><#if requestVo.orderStatus == enum.status>selected='true'</#if></#if> >${enum.description}</option>
				</#list> 
          		</select>
           <span>订单搜索&nbsp;</span>
                   <select name="keyWordType" style="width:auto">
                    	<option value="1" <#if requestVo.keyWordType??><#if requestVo.keyWordType==1>selected='true'</#if></#if>>订单编号</option>
						<option value="2" <#if requestVo.keyWordType??><#if requestVo.keyWordType==2>selected='true'</#if></#if>>来源订单号</option>
                    </select>
            &nbsp;&nbsp;<input type="text" style="width:180px" name="keyWord" value="${(requestVo.keyWord)!''}">
         
	    </div>
    </form>
	    <a href="javascript:void(0);" id="search_button" class="search_btn fl"><span>搜索</span></a> 
		
    <div class="clear"></div>
    <!--表格列表-->
    <div class="Table">
      <table id="table" cellpadding="0" cellspacing="1">
        <tbody>
          <tr id="gl">
         	<td>订单编号&amp;名称</td>
            <td>价格/佣金</td>
            <td>成交时间</td> 
			<td>状态</td>
            <td>操作</td>
          </tr>
         <#if (pager.list??)> 
         <#if ((pager.list?size)>0)>
          <#list pager.list as bean>
          <tr>
          <td><a href="${basePath }manager/Tran_findTranInfo?tranOrderId=${(bean.tradeNo)!''}" target="_blank">${(bean.tradeNo)!''}</a><br>${(bean.productSubject)!''}</td>
            <td>${(bean.payMoney)?c}元 / 0元</td>
            <td>${(bean.createTime)!''}</td> 
            
            <td>
            	<#list tradeOrderVerifyStatusEnum as enum >  
				<#if (bean.verifyStatus==enum.status)>${enum.description}</#if> 
				</#list>  
            </td>
        
            <td class="tbl_btn tdd150">
         		<a href="${basePath}manager/TradeOrder_tradeOrderDetail?tradeOrderId=${(bean.id?c)!''}"><span id="editor">详情</span></a> 
     		</td>
          </tr>
          </#list >
          </#if>
          </#if>
        </tbody>
      </table>
    </div>
    <!--翻页按钮-->
  	<#import "../../base/pager.ftl" as p>
   	<@p.pager pager = pager baseUrl = "/manager/TradeOrder_tradeOrderList" parameterMap={"userId":(userId?c)!'', "startDate":(startDate)!'',"endDate":(requestVo.endDate)!'',"keyWordType":(requestVo.keyWordType)!'',"keyWord":(requestVo.keyWord)!'',"orderStatus":(requestVo.orderStatus)!''} /> 
</div>


</body>
</html>

